<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVisitorInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('visitorInfo', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('cmpId')->comment('公司ID');
            $table->integer('visitorTypeId')->comment('访客类型ID');
            $table->string('typeName')->comment('类型名称');
            $table->tinyInteger('isHidden')->comment('开关(0隐藏,1显示)');
            $table->tinyInteger('type')->comment('访客类型(1面试，2客户，3亲友，4其他)');
        });
        DB::statement("ALTER TABLE `visitorInfo` comment '便签信息表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
